package com.struct.factory
{
	import com.struct.graph.server_list.ServerListFrame;
	import com.struct.graph.server_list.ServerListGraphWorker;
	
	import sacu.s.Factory;
	
	public class ServerListFactory extends Factory
	{
		public var serverListGW:ServerListGraphWorker;
		public var serverList:ServerListFrame;
		public function ServerListFactory(Name:String)
		{
			super(Name);
		}
		override protected function onInitFactory():void{
			super.onInitFactory();
			serverList = new ServerListFrame();
			serverListGW = new ServerListGraphWorker("ServerListGraphWorker", serverList);
		}
		override protected function onStartFactory():void{
			registerGraphicsWorker(serverListGW);
			SSA.application.limitLayer.addChild(serverList);
		}
		override public function disposeFactory():void{
			super.disposeFactory();
			removeGraphicsWorker(serverListGW.eName);
			SSA.application.limitLayer.removeChild(serverList);
		}
	}
}